home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / fonts / macfontx.zip / HOW_TO.TXT < prev    next >
Text File  |  1993-10-04  |  7KB  |  174 lines

  1. Abstracted from:
  2. --------------------------------------------------------------
  3. Xref: helios.physics.utoronto.ca comp.fonts:9393 news.answers:12846
  4. Path: helios.physics.utoronto.ca!utcsri!rpi!batcomputer!caen!nic.umass.edu!ymir.
  5. cs.umass.edu!ymir.cs.umass.edu!usenet
  6. From: walsh@cs.umass.edu (Norman Walsh)
  7. Newsgroups: comp.fonts,news.answers
  8. Subject: comp.fonts FAQ: MS-DOS Info
  9. Supersedes: <font-faq-5_748294975@cs.umass.edu>
  10. Followup-To: poster
  11. Date: 22 Sep 1993 15:12:02 GMT
  12. Organization: Dept. of Computer Science, Univ. of Mass (Amherst)
  13. Lines: 593
  14. Approved: news-answers-request@MIT.Edu
  15. Distribution: world
  16. Expires: 5 Nov 1993 15:10:25 GMT
  17. Message-ID: <font-faq-5_748710625@cs.umass.edu>
  18. References: <font-faq-1_748710625@cs.umass.edu>
  19. Reply-To: walsh@cs.umass.edu (Norman Walsh)
  20. NNTP-Posting-Host: ibis.cs.umass.edu
  21. Summary: This posting answers frequently asked questions about fonts.
  22.          It addresses both general font questions and questions that
  23.          are specific to a particular platform.
  24.  
  25. Archive-name: fonts-faq/part5
  26. Version: 2.0.2
  27.  
  28. Subject: 3. MS-DOS Information
  29. --------------------------------------------------------------
  30.  
  31. Subject: 3.5. Converting fonts under MS-DOS
  32.   
  33. Subject: 3.5.1. Converting Mac Type 1 fonts to MS-DOS format
  34.   
  35.   Converting Macintosh Type1 fonts into PC Type1 fonts can be done using
  36.   purely free/shareware tools.  I've outlined the procedure below.  Make
  37.   sure you read the "readme" files that accompany many fonts.  Some font
  38.   authors specifically deny permission to do cross-platform conversions.
  39.   
  40.   The tools you need
  41.   ==================
  42.   
  43.   XBIN
  44.        xbin23.zip in /pub/msdos/mac on oak.oakland.edu     (or other
  45.        mirrors)
  46.   
  47.   UNSIT
  48.        unsit30.zip in /pub/msdos/mac on oak.oakland.edu
  49.   
  50.   UNSITI
  51.        unsiti.exe in /pub/onset/util on ftp.std.com
  52.   
  53.        Peter Gentry indicates that this program can extract SIT
  54.        archives that use the newer compression techniques that     unsit
  55.        doesn't recognize.
  56.   
  57.   UNCPT
  58.        ext-pc.zip in /pub/pc/win3/util on ftp.cica.indiana.edu
  59.   
  60.   REFONT
  61.        refont14.zip in /pub/norm/mac-font-tools on ibis.cs.umass.edu
  62.   
  63.   BMAP2AFM
  64.        bm2af02.zip in /pub/norm/mac-font-tools on ibis.cs.umass.edu
  65.   
  66.   XBIN converts Mac "BinHex"ed files back into binary format.  BinHex is
  67.   the Mac equivalent of UUencoding, it translates files into ascii
  68.   characters so that mailers can send them around without difficulty.  It
  69.   also aids in cross platform copying too, I'm sure.  BinHexed files
  70.   generally have filenames of the form "xxx.yyy.HQX".
  71.   
  72.   UNSIT explodes "Stuffit" archives.  Stuffit archives generally have
  73.   filenames of the form "xxx.SIT".  UNSIT will ask if you want to
  74.   seperate resource and data forks.  Yes, you do.  There has been some
  75.   confusion about whether or not you want headers.  I'm inclined to
  76.   conclude that it can be made to work either way.  Personally, I say no.
  77.   
  78.   UNCPT explodes "Compactor" archives.  The ext-pc implementation is
  79.   called "extract" and does not require windows (even thought it's in the
  80.   windows section on cica).  Compactor archives generally have filenames
  81.   of the form "xxx.CPT".
  82.   
  83.   REFONT converts Mac type1 fonts into PC type1 fonts.  It also converts
  84.   Mac TrueType fonts to PC TrueType format.  And vice-versa.
  85.   
  86.   BMAP2AFM constructs AFM files from the metric information contained in
  87.   Mac screen fonts (.bmap files).  The screen font files do not have any
  88.   standard name (although they frequently have the extension .bmap).  The
  89.   screen fonts have file type "FFIL" which, in combination with some
  90.   common sense, is usually sufficient to identify them.
  91.   
  92.   I've listed the tools that I've used and the sites that are reasonable
  93.   for me to retrieve them from.  It's probably a good idea to check with
  94.   archie for closer sites if you're not in North America.  These tools
  95.   run under MS-DOS.  XBIN and UNSIT can also be run under Unix.
  96.   
  97.   How to do it?
  98.   =============
  99.   
  100.   Collect the Mac fonts from the archive or BBS of your choice.  Most of
  101.   these files will be in BinHexed format.  As a running example, I'm
  102.   going to use the imaginary font "Plugh.cpt.hqx".  When I download this
  103.   font to my PC, I would use the name "PLUGH.CPX".  The actual name you
  104.   use is immaterial.
  105.   
  106.   Run XBIN on PLUGH.CPX.  This will produce PLUGH.DAT, PLUGH.INF, and
  107.   PLUGH.RSR.  The data fork of the Mac file (the .DAT file) is the only
  108.   one of interest to us, you can delete the others.
  109.   
  110.   If the original file had been "Plugh.sit.hqx", we would be using the
  111.   UNSIT program.  Since I chose a .cpt file for this example, I'm going
  112.   to run UNCPT.
  113.   
  114.   Run UNCPT on PLUGH.DAT.  You want to extract the AFM file (if present),
  115.   the documentation or readme file (if present), and the Type1 outline
  116.   file.  The AFM and README files will be in the data fork of the archive
  117.   file.  The Type1 outline will be in the resource fork.  The AFM and
  118.   README files have Mac "TEXT" type.  The Type1 outline file has "LWFN"
  119.   type.  I'm not trying to describe this part in a step-by-step fashion.
  120.   Use the docs for UNCPT and UNSIT as a guide.  If you got this far you
  121.   probably won't have much difficulty.  If you do, drop me a line and
  122.   I'll try to help.
  123.   
  124.   If the font does not contain an AFM file, extract the screen font.
  125.   Screen fonts frequently have the extension .bmap and are "FFIL" type
  126.   files.  Use Bmap2AFM to construct an AFM from the screen font.  If the
  127.   archive _does_ contain an AFM file, it's safe to bet that the author's
  128.   AFM will be better than the one created by Bmap2AFM.
  129.   
  130.   Finally, run REFONT on the Type1 outline that you extracted above.  The
  131.   result should be an appropriate PC type1 outline.  REFONT will create a
  132.   PFM file for you from the AFM file, if you desire.
  133.   
  134.   Remember to register your shareware...
  135.   
  136.   Other comments
  137.   ==============
  138.   
  139.   vkautto@snakemail.hut.FI makes the following observations:
  140.   
  141.      * UNCPT is easier to use than UNSIT
  142.   
  143.      * UNCPT has to be run twice. I usually do it like this
  144.   
  145.        extract *.cpt -f
  146.   
  147.        extract *.cpt -f -r
  148.   
  149.      * When using "unsit30" you probably want the outline file with the
  150.           MacHeader and the others without it. I think that REFONT
  151.        requires it       but I am not sure.
  152.   
  153.      * REFONT works usually ok. You want a PFA (ASCII) file which is
  154.        directly usable on NeXT (you may need to convert carriage-returns
  155.        to       newlines but I am not sure if it is necessary).
  156.   
  157.        The biggest problem is with the .afm files that are completely
  158.        missing       or generated by the tools that don't do their job
  159.        properly.
  160.   
  161.      * BMAP2AFM requires some extra files (ie. other than bmap2afm.exe) to
  162.             work properly.
  163.   
  164. Subject: 3.5.2. Converting PC Type 1 and TrueType fonts to Mac format
  165.   
  166.   Refont (version 1.4) can convert (in both directions) between PC and Mac
  167.   formats of Type1 and TrueType fonts.  Note: it _cannot_ convert
  168.   _between_ formats, only architectures.  The procedure described above
  169.   outlines how to convert a Mac archive into PC format so that you can
  170.   get at the data.  Presumably, the process can be reversed so that you
  171.   can get at the data on the Mac side as well.  Unfortunately, I don't
  172.   have a Mac so I can't describe the process in detail.
  173.   
  174.